//
//  Service+Equipment.h
//  xidian
//
//  Created by fengyn on 16/5/21.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import "ServiceManager.h"

@interface ServiceManager(Equipment)
///分页查询设备列表
+ (void)getAllEquipmentsWithPageIndex:(NSUInteger)pageIndex success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///更新设备信息
+ (void)updateEquipmentInfoWithCode:(NSString *)equipmentCode infoDic:(NSDictionary *)infoDic success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

///根据设备code查询设备信息
+ (void)getEuqipmentInfoWithCode:(NSString *)equipmentCode success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;

#pragma mark - 报修信息管理
///创建报修信息
+ (void)createReportWithInfoDic:(NSDictionary *)infoDic success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
///分页查询报修信息
+ (void)getAllReportsWithPageIndex:(NSUInteger)pageIndex euqipmentSn:(NSString *)euqipmentSn success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
///查看报修详情
+ (void)getReportInfoWithId:(NSString *)theId success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
///更新报修信息
+ (void)updateReportInfoWithId:(NSString *)theId infoDic:(NSDictionary *)infoDic success:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
///获取处理方式
+ (void)getProcessMethodsSuccess:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
///获取故障诊断
+ (void)getfailureDiagnosisSuccess:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure;
@end
